//
//  NewsText.m
//  iCarStyle
//
//  Created by liu nian on 14-5-13.
//  Copyright (c) 2014年 liunian. All rights reserved.
//

#import "NewsText.h"
#import "NewsTextEntity.h"

@implementation NewsText
- (instancetype)instancetypeWithNewsTextEntity:(NewsTextEntity *)entity{
    if (self == [super init]) {
        self.nid     = [entity.nid intValue];
        self.index   = [entity.index integerValue];
        self.content = entity.content;
    }
    return self;
}
@end
